package lab02.test35;

public class Test {
    public static void main(String[] args) {
        Manager manager=new Manager();
        manager.name="张三";
        manager.salary=150;

        Salesman salesman=new Salesman();
        salesman.name="李四";
        salesman.salary=120;
        salesman.increSalary=20;

        Worker worker=new Worker();
        worker.name="王五";
        worker.day=20;
        worker.salary=100;

        System.out.println(" 经理"+manager.name+" 的工资为："+manager.computeSalary());
        System.out.println("销售人员"+salesman.name+"的工资为:"+salesman.computeSalary());
        System.out.println(" 工人"+worker.name+"的工资为:"+worker.computeSalary());
    }
}
